{% extends "lottery/index.html" %}
{% block body %}

<div class="qbkj-cont">
{% if contacts %}


    <h3 class="kaij-tit">{{contacts2.logo}}<em>{{contacts2.link__code}}期预测结果</em> </h3>
    
    {% for contact in contacts %}
    <div class="kaij-boxer">
<h3>算法{{contact.num}}：{{contact.alg_name}}</h3>

<table>
    <tbody>
        <tr style="height: 9px;">
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td><h4 style="color: rgba(246,63,63,1)">原始数据</h4></td>
        </tr>
     {% if contact.orange %}
     <tr>
         <td style="width:26%">前区可能开出：</td>
         <td>
             {% for o in contact.orange %}
             <span style="margin-right: 6px;color: #ed8431;">{{o}}</span>
             {% endfor %}
         </td>
     </tr>
     {% endif %}
 
     {% if contact.solida %}
     <tr>
         <td style="width:26%">后区可能开出：</td>
         <td>
             {% for s in contact.solida %}
             <span style="margin-right: 6px;color: #696bc9">{{s}}</span>
             {% endfor %}
         </td>
 
     </tr>
     {% endif %}
 
     {% if contact.red %}
     <tr>
         <td style="width:26%">红区可能开出：</td>
         <td>
             {% for r in contact.red %}
             <span style="margin-right: 6px;color: rgba(246,63,63,1);">{{r}}</span>
             {% endfor %}
         </td>
     </tr>
     {% endif %}
 
     {% if contact.blue %}
     <tr>
         <td style="width:26%">蓝区可能开出：</td>
         <td>
             {% for b in contact.blue %}
             <span style="margin-right: 6px;color: rgba(80,140,238,1);">{{b}}</span>
             {% endfor %}
         </td>
     </tr>
     {% endif %}

 
    </tbody>
 </table>
 

<table>
    <tbody>
        <tr style="height: 9px;">
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td><h4 style="color: rgba(246,63,63,1)">预测结果</h4></td>
        </tr>
     {% if contact.right_orange %}
     <tr>
         <td style="width:26%">前区开出：</td>
         <td>
             {% for o in contact.right_orange %}
             <span style="margin-right: 6px;color: #ed8431;">{{o}}</span>
             {% endfor %}
         </td>
     </tr>
     {% endif %}
 
     {% if contact.right_solida %}
     <tr>
         <td style="width:26%">后区开出：</td>
         <td>
             {% for o in contact.right_solida %}
             <span style="margin-right: 6px;color: #ed8431;">{{o}}</span>
             {% endfor %}
         </td>
     </tr>
     {% endif %}

     {% if contact.right_red %}
     <tr>
         <td style="width:26%">红区开出：</td>
         <td>
             {% for o in contact.right_red %}
             <span style="margin-right: 6px;color: #ed8431;">{{o}}</span>
             {% endfor %}
         </td>
     </tr>
     {% endif %}

     {% if contact.right_blue %}
     <tr>
         <td style="width:26%">蓝区开出：</td>
         <td>
             {% for o in contact.right_blue %}
             <span style="margin-right: 6px;color: #ed8431;">{{o}}</span>
             {% endfor %}
         </td>
     </tr>
     {% endif %}


    </tbody>
 </table>
 
</div>
{% endfor %}

{% else %}
<h4>客官，有可能管理员还未更新此彩种的算法！</h4>
<h4>客官，请等待下期开奖！</h4>
{% endif %}
</div>
{% endblock body %}